import {
	http
} from '@/external/service/service.js'
import configService from '@/external/service/config.service.js';
export default class WorshipApi {
	// 获取所有教派
	async getAllDenomination(params) {
		let res = await http.post('/yjd/v1/worship/getAllDenomination', params)
		return res.data
	}
	// 获取教派人物详情
	async getWorshipPeopleInfo(params) {
		let res = await http.post('/yjd/v1/worship/getWorshipPeopleInfo', params)
		return res.data
	}
	// 获取祭拜记录
	async getPracticeDetails(params) {
		let res = await http.post('/yjd/v1/worship/getPracticeDetails', params)
		return res.data
	}
	// 获取祭拜记录
	async getWorshipRecord(params) {
		let res = await http.post('/yjd/v1/worship/getWorshipRecord', params)
		return res.data
	}
	// 获取祈福记录
	async getAuspiciousnessRecord(params) {
		let res = await http.post('/yjd/v1/worship/getAuspiciousnessRecord', params)
		return res.data
	}
	// 获取用户修行详情
	async getPracticeDetails(params) {
		let res = await http.post('/yjd/v1/worship/getPracticeDetails', params)
		return res.data
	}
	// 叩拜
	async kowtow(params) {
		let res = await http.post('/yjd/v1/worship/kowtow', params)
		return res.data
	}
	// 敬香
	async respectfulIncense(params) {
		let res = await http.post('/yjd/v1/worship/respectfulIncense', params)
		return res.data
	}
	// 供奉
	async offeringSacrifices(params) {
		let res = await http.post('/yjd/v1/worship/offeringSacrifices', params)
		return res.data
	}
	// 祈福
	async auspiciousness(params) {
		let res = await http.post('/yjd/v1/worship/auspiciousness', params)
		return res.data
	}
	
	//还愿送灯笼
	async huanYuan(params) {
		let res = await http.post('/yjd/v1/worship/huanYuan', params)
		return res.data
	}
	
	//还愿记录
	async huanyuanRecord(params) {
		let res = await http.post('/yjd/v1/worship/huanyuanRecord', params)
		return res.data
	}
	
	//抽签
	async worshipchouQian(params) {
		let res = await http.post('/yjd/v1/worship/chouQian', params)
		return res.data
	}
	
	//解签
	async jieQian(params) {
		let res = await http.post('/yjd/v1/worship/jieQian', params)
		return res.data
	}
	
	//对神仙的供奉物品 及 点燃中香
	//params：worshipPeopleId
	async getOffered(params) {
		let res = await http.post('/yjd/v1/worship/getOffered', params)
		return res.data
	}
}